package com.jbp.dao;

import com.jbp.model.RoomCollect;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 
 * 
 * @author lucheng feng
 * @email jbp@gmail.com
 * @date 2020-06-20 12:50:07
 */

public interface RoomCollectDao extends BaseMapper<RoomCollect> {

    @Select("select room_id from room_collect where user_id=#{userId}")
    List<Integer> getRoomIds(@Param("userId") Integer userId);
	
}
